#include<iostream>
using namespace std;
int arr[20];
bool st[20];
int n;
int main()
{
	cin >> n;
	bool res = 0;
	for (int i = 0; i < n; i++) {
		cin >> arr[i];
	}
	for (int i = 0; i < 1 << n; i++) {
		int sum = 0;
		for (int j = 0; j < n; j++) {
			if (i >> j & 1) {
				sum += arr[j];
			}
			else {
				sum -= arr[j];
			}
		}
		if (sum % 360 == 0) {
			res = 1;
		}
	}
	if (res) {
		cout << "YES" << endl;
	}
	else {
		cout << "NO" << endl;
	}
	return 0;
}